package com.lc.dubbo.consumer;

import com.lc.api.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author liuc
 * @date 2021/6/17
 * @description
 **/
@Component("dubboConsumer")
public class DubboConsumer {
    @Reference
    private DemoService demoService;

    public void testA(){
        //System.out.println("methodA :" + demoService.methodA());
        demoService.methodA();
    }
    public void testB(){
        //System.out.println("methodB :" + demoService.methodB());
        demoService.methodB();
    }
    public void testC(){
        //System.out.println("methodC :" + demoService.methodC());
        demoService.methodC();
    }
}
